package com.leyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("tb_category_brand")
@AllArgsConstructor(staticName="of")
@NoArgsConstructor
public class CategoryAndBrand {

    @TableId(type = IdType.INPUT)//主键是自己输入的 而不是自增长
    private Long categoryId;

    @TableId(type = IdType.INPUT)
    private Long brandId;
}
